package com.linkwedo.saas.domain;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

import com.linkwedo.saas.domain.member.User;

public class Task implements java.io.Serializable{
	private static final long serialVersionUID = 3384359397636745514L;
	private Integer id;
	private String name;
	private Date dueDate;
	private TaskPriority priority;
	private TaskRecurrence recurrence;
	private String tag;
	private String description;
	private Timestamp createTime;
	private String note;
	private Integer projectId;
    private List<Target> targetList;
	
	private Set<TaskComment> comments = new LinkedHashSet<TaskComment>();
	private Set targets = new HashSet();
	private List<TaskUser> taskusers;
	private Project project;
	private User creator;
	
	public static enum TaskPriority {
		LOW, NORMAL, HIGH;
	}
	
	public enum TaskRecurrence {
		ONCE,DAILY,WEEKLY,MONTHLY,QUARTERLY,YEARLY;
	}
	
	public Integer getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public TaskPriority getPriority() {
		return priority;
	}

	public void setPriority(TaskPriority priority) {
		this.priority = priority;
	}

	public TaskRecurrence getRecurrence() {
		return recurrence;
	}

	public void setRecurrence(TaskRecurrence recurrence) {
		this.recurrence = recurrence;
	}


	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public User getCreator() {
		return creator;
	}

	public void setCreator(User creator) {
		this.creator = creator;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Set<TaskComment> getComments() {
		return comments;
	}

	public void setComments(Set<TaskComment> comments) {
		this.comments = comments;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public List<Target> getTargetList() {
		return targetList;
	}

	public void setTargetList(List<Target> targetList) {
		this.targetList = targetList;
	}

	public Set getTargets() {
		return targets;
	}

	public void setTargets(Set targets) {
		this.targets = targets;
	}

	public List<TaskUser> getTaskusers() {
		return taskusers;
	}

	public void setTaskusers(List<TaskUser> taskusers) {
		this.taskusers = taskusers;
	}
	
	
}
